package com.common;



import com.user.domain.User;

import java.util.List;

/**
 * Created by sola on 2018/1/20.
 */
public class PagedResult<T> {

   private Integer total;

   private List<T> rows;

    public PagedResult() {
    }

    public PagedResult(Integer total, List<T> rows) {
        this.total = total;
        this.rows = rows;
    }

    public PagedResult(long total, List<T> rows) {
        this.total = new Long(total).intValue();
        this.rows = rows;
    }

    public PagedResult(Long total, List<T> rows) {
        this.total = total.intValue();
        this.rows = rows;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }
}
